import os

from speech.baidu.speech_recognition import *

_CONF_PATH = 'speech/baidu/BaiduOAuth.ini'
API_KEY, SECRET_KEY = get_baidu_api_key_config(_CONF_PATH)

BAIDU_ACCESS_TOKEN = get_baidu_token_config(_CONF_PATH)
if not BAIDU_ACCESS_TOKEN:
    BAIDU_ACCESS_TOKEN = os.getenv('BAIDU_ACCESS_TOKEN')
    if not BAIDU_ACCESS_TOKEN:
        raise Exception("BAIDU_TEST_TOKEN not found.")



